using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FileGeodatabase
{
    /// <summary>
    /// <para>Recover File Geodatabase</para>
    /// <para>Recovers data from a file geodatabase that has become corrupt.</para>
    /// <para>从已损坏的文件地理数据库中恢复数据。</para>
    /// </summary>    
    [DisplayName("Recover File Geodatabase")]
    public class RecoverFileGDB : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RecoverFileGDB()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_file_gdb">
        /// <para>Input File Geodatabase</para>
        /// <para>Input corrupt file geodatabase.</para>
        /// <para>输入损坏的文件地理数据库。</para>
        /// </param>
        /// <param name="_output_location">
        /// <para>Output Location</para>
        /// <para>Output folder location for the recovered file geodatabase.</para>
        /// <para>恢复文件地理数据库的输出文件夹位置。</para>
        /// </param>
        /// <param name="_out_name">
        /// <para>File Geodatabase Name</para>
        /// <para>Name for the output file geodatabase.</para>
        /// <para>输出文件地理数据库的名称。</para>
        /// </param>
        public RecoverFileGDB(object _input_file_gdb, object _output_location, object _out_name)
        {
            this._input_file_gdb = _input_file_gdb;
            this._output_location = _output_location;
            this._out_name = _out_name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Recover File Geodatabase";

        public override string CallName => "management.RecoverFileGDB";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_input_file_gdb, _output_location, _out_name, _out_file_gdb];

        /// <summary>
        /// <para>Input File Geodatabase</para>
        /// <para>Input corrupt file geodatabase.</para>
        /// <para>输入损坏的文件地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input File Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_file_gdb { get; set; }


        /// <summary>
        /// <para>Output Location</para>
        /// <para>Output folder location for the recovered file geodatabase.</para>
        /// <para>恢复文件地理数据库的输出文件夹位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Location")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_location { get; set; }


        /// <summary>
        /// <para>File Geodatabase Name</para>
        /// <para>Name for the output file geodatabase.</para>
        /// <para>输出文件地理数据库的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("File Geodatabase Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_name { get; set; }


        /// <summary>
        /// <para>Output File Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_file_gdb { get; set; }


        public RecoverFileGDB SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}